package cn.itcast.service;

import cn.itcast.Permission;

import java.util.List;

public interface PermissionService {

    /**
     * 查询所有资源
     * @return
     */
    List<Permission> findAll();

    /**
     * 根据id查询资源权限
     * @param id
     * @return
     * @throws Exception
     */
    Permission findById(String id) throws Exception;


    /**
     * 添加资源权限
     * @param permission
     * @throws Exception
     */
    void save(Permission permission) throws Exception;
}
